class CourseListEntity {
	int errno;
	CourseListData data;
	String errmsg;

	CourseListEntity({this.errno, this.data, this.errmsg});

	CourseListEntity.fromJson(Map<String, dynamic> json) {
		errno = json['errno'];
		data = json['data'] != null ? new CourseListData.fromJson(json['data']) : null;
		errmsg = json['errmsg'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['errno'] = this.errno;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['errmsg'] = this.errmsg;
		return data;
	}
}

class CourseListData {
	int total;
	int pages;
	int limit;
	int page;
	List<CourseListDataList> xList;

	CourseListData({this.total, this.pages, this.limit, this.page, this.xList});

	CourseListData.fromJson(Map<String, dynamic> json) {
		total = json['total'];
		pages = json['pages'];
		limit = json['limit'];
		page = json['page'];
		if (json['list'] != null) {
			xList = new List<CourseListDataList>();(json['list'] as List).forEach((v) { xList.add(new CourseListDataList.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['total'] = this.total;
		data['pages'] = this.pages;
		data['limit'] = this.limit;
		data['page'] = this.page;
		if (this.xList != null) {
      data['list'] =  this.xList.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class CourseListDataList {
	int companyId;
	dynamic companyName;
	String name;
	String description;
	int id;

	CourseListDataList({this.companyId, this.companyName, this.name, this.description, this.id});

	CourseListDataList.fromJson(Map<String, dynamic> json) {
		companyId = json['companyId'];
		companyName = json['companyName'];
		name = json['name'];
		description = json['description'];
		id = json['id'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['companyId'] = this.companyId;
		data['companyName'] = this.companyName;
		data['name'] = this.name;
		data['description'] = this.description;
		data['id'] = this.id;
		return data;
	}
}
